Pluralsight Consuming Web Services and Using Local Storage on iOS
This course demonstrates the fundamental techniques used for downloading, reading and writing data in iOS apps. You’ll learn how to download data from an XML web service, parse it and display it in your app. You’ll also see how to perform the same task with a service that serves JSON data. Techniques for storing data locally on an iOS device are covered. These include archiving custom objects as well as reading and writing objects to and from property lists. You will also learn how to use the NSUserDefaults class to read and write simple data such as user preferences. All apps use data of some kind and this course will teach you the fundamental skills you need to get started working with data on the iOS platform. Follow along as we build an iPhone app from scratch and add new functionality in each module.
| Duration | |||
|---|---|---|---|
Downloading Data From XML Web Services | ![]() | 00:31:32 | |
| Course Introduction | ![]() | 02:19 | |
| Module Overview | ![]() | 00:53 | |
| Create a Model Class | ![]() | 01:20 | |
| Demo: Review XML and Create Project | ![]() | 03:46 | |
| Making a Service Request | ![]() | 03:11 | |
| Demo: Create a Service Request for Courses | ![]() | 02:07 | |
| Using NSXMLParser | ![]() | 01:55 | |
| Adopting the NSXMLParserDelegate Protocol | ![]() | 05:39 | |
| Demo: Parse XML and Display Data | ![]() | 09:33 | |
| Summary | ![]() | 00:44 | |
Downloading Data from JSON Web Services | ![]() | 00:27:42 | |
| Introduction | ![]() | 00:34 | |
| Module Overview | ![]() | 01:19 | |
| JSON Syntax and Structure | ![]() | 04:14 | |
| Demo: Review Raw JSON and Setup Project | ![]() | 05:28 | |
| NSJSONSerialization | ![]() | 04:10 | |
| Demo: Parse JSON and Display in App | ![]() | 03:39 | |
| POST Model Objects as JSON | ![]() | 01:32 | |
| Demo: Convert Model to JSON and POST | ![]() | 06:09 | |
| Summary | ![]() | 00:32 | |
Archiving and the File System | ![]() | 00:24:22 | |
| Introduction | ![]() | 02:02 | |
| The App Sandbox | ![]() | 01:53 | |
| Specifying the Path to Files | ![]() | 01:59 | |
| NSFileManager Overview | ![]() | 01:27 | |
| Demo: Working with the File System | ![]() | 05:05 | |
| Understanding the NSCoder Class | ![]() | 00:56 | |
| Using the NSCoding Protocol | ![]() | 02:27 | |
| NSKeyedArchiver and NSKeyedUnarchiver | ![]() | 01:45 | |
| Demo: Archiving and Unarchiving Data | ![]() | 05:59 | |
| Summary | ![]() | 00:45 | |
Saving Data to Property Lists | ![]() | 00:25:16 | |
| Introduction | ![]() | 01:02 | |
| What is a Property List? | ![]() | 02:01 | |
| Creating Property Lists in Xcode | ![]() | 01:01 | |
| Demo: Creating Property Lists in Xcode | ![]() | 02:21 | |
| Binary versus XML Storage | ![]() | 00:55 | |
| Reading and Writing XML Property Lists | ![]() | 02:02 | |
| Reading and Writing Binary Property Lists | ![]() | 05:13 | |
| Demo: Reading and Writing a Binary Property List | ![]() | 09:52 | |
| Summary | ![]() | 00:45 | |
Using NSUserDefaults | ![]() | 00:11:24 | |
| Introduction | ![]() | 00:52 | |
| What is NSUserDefaults? | ![]() | 01:11 | |
| Reading and Writing to NSUserDefaults | ![]() | 00:37 | |
| Register Defaults at App Startup | ![]() | 01:48 | |
| Demo: Saving a User Preference to NSUserDefaults | ![]() | 06:30 | |
| Summary | ![]() | 00:23 |
Downloading Data From XML Web Services









Downloading Data from JSON Web Services







Archiving and the File System








Saving Data to Property Lists







Using NSUserDefaults




